Does anyone know where the mDrawItemMsg, and mCalcItemMsg messages to
MDEFs are documented? I can't seem to find anything, but I don't have
every tech note...
Thanks,
--dave koziol
u of michigan
Path: ucivax!gateway
From: s57783@zeus.usq.edu.au (chapman alan)
Subject: GetResInfo Results??
Message-ID: <9109291013.AA03662@zeus.usq.edu.au>
Newsgroups: fa.think-c
Lines: 1
Date: 29 Sep 91 00:17:38 GMT
The following code is extracted from an application I am writing.My question is simple. Why does theType, as returned by GetResInfo,not work as an argument for CountResources or GetResource? I have checked with the Think C Debugger (4.0.5) and the result of theGetResInfo call seems good, and each call to ResError returns zero.If I call CountResources with 'gMNU' rather than the result fromGetResInfo, it works fine but it defeats my purpose [the call to GetResource is not normally in this bit of code].Thanks for any help you can give,Alan Chapman.s57783@zeus.usq.edu.aumain(){Handle theHandle;int theID, resErr, count;char theType[4];Str255 name;theHandle = GetResource('gMNU', 20791);GetResInfo(theHandle, &theID, &theType, name);resErr = ResError();ReleaseResource(theHandle);resErr = ResError();count = CountResources(theType);resErr = ResError();theHandle = GetResource(theType, theID);resErr = ResError();}
Path: ucivax!gateway
From: s57783@zeus.usq.edu.au (chapman alan)
Subject: GetResInfo Results Solved
Message-ID: <9109291050.AA03781@zeus.usq.edu.au>
Newsgroups: fa.think-c
Lines: 9
Date: 29 Sep 91 00:54:07 GMT
OK I goofed, sorry for the wasted time.
I needed to declare theType as being of type ResType (which I had previously
done but had failed to pass it as &theType to GetResInfo). I thought I had
done the right thing based on what the debugger gave back but too bad now, it's